package com.czp.discount.repository;

import com.czp.discount.domain.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserInfoRepository extends JpaRepository<UserInfo,Integer> {

    UserInfo findUserInfoById(int id);
    List<UserInfo> findUserInfoByRole(String role);

}
